/**
 * 
 */
$('#common_form').validate({
	errorElement: 'div',
	errorClass: 'help-block',
	focusInvalid: false,
	ignore: "",
	//debug:true,
	submitHandler: function(form){
		try {
			var flag = submitHandler(form);
			if(!flag) {
				return false;
			}
		} catch (e) {
			console.log(e);
		}
		$.post($(form).attr("action"), $(form).serialize(),function(data){
			if(data.success){
				location.href=ctlKey;
			} else {
				bootbox.dialog({
					title: '出错了',
					message: '<p><i class="fa fa-bomb"></i>' + data.message+ '</p>'
				});
			}
		},"json"); 
		return false;
	}
});